better working chat

images coming and saving to the database