creating lessons model, migration and postgres database