Fix to check db script