Add helper functions to insert message into db, query for user ID
Make email addresses lowercase before saving them to db