Cleaning db for sq