Database connection utility

Added DatabaseUtility.java, which is a utility for connecting to and querying the database.