working on db script