updated database, added user authentication