mock db select method