adding .h file for database access
added db access code. can connect to the db and make a query.
refactored errors messages into one function