Adding authentication to database.