added load and write methods

Added the following 2 methods that utilize the runQuery method:

- loadDataFromDB: for running “select” queries and load the data from
database

- executeQuery: for executing “insert, delete and update” queries