Database select method under development, tests not passing for it