check db script