create models
edit adapter for db
add reference for models