Working on fixing Query insert to DB