Introduced select function

This is a shortcut to get the rows from a select statement.