Added usernames to email function, moved db.