mod_storage_sql: fix stores and store_exists (forgot that  is used differently in the db than in files)