Minor changes to db script