Added methods to select the first and last row.
Added method to commit updates, deletes and inserts.

Implemented functions in the gui.
General changes in the gui.