migration of database and edited of models for user and posts