models, db, create function implemented