created models in ./lib and made schema.sql