uploading messages to database
fixed typo