can now add messages to database