FileSystem adapter: ensure to safely query when the database is new. Thanks to @gogogarrett for catching this problem