added an unframed_sql_select_objects function to select a limited number of rows from a table