Changed condition for db script