create db properly