remove db config in messages_controller