created message model in database