Generated message model and updated db schema