Working sign up and database file in lib