The script itself is written in php, but it uses a sql based database (mysql, pgsql, mssql, etc.) on the back-end. It will require a database to function.
How do you think messages and username/passwords are stored? MySQL is a database used for storing information so it can be used again and again.