databases are being checked. statements need to be rewritten