testing Database Connection-Added functions

- Added functions to classes
- Tested JDBC connection to see if its works properly before proceeding