Adding queryOne call