minor changes to db scripts