modified the db script