Integrated SQL database for inserting messages