First version that can actually select results from the database