create db and model