Minor edits in database and auth