manual benchmarking of db queries