create db and mapping model