updated dq.sql so that it cretes database if not exists