The working directory has to be something other than the directory with the database. If not, it will return empty for the queries.