Connection to database saving fixed, chat message posting works fine.