fixed DB access.  whoops!