Create libdb.sh

Created functions connect and disconnect to the database. Also created functions to run and fetch queries.