added user database and security