fix create db query