Finished DBselect()

Added support for only getting some rows from the table. Through brief
testing, it's working well.