Added additional SQL procedures 

This should include all needs for reading, writing and retuning info from the database. 

The new procedures added have not been tested using java connection nor via SQL calls.