create db and ability to edit