fixed a couple things with the edit orders connecting to the DB