dbquery: remove atexit unlock tables

* A function that never worked anyway.
dbquery: profile queries