Main function is to store user data. This is a form of permanent storage for the application to use. Website may not have database, which means they are essentially static pages. Static pages are usually just ‘viewed’.

A login system inherently means a website uses database system.