Attempted integration of Hibernate that didn't work very well. Probably
going to revert this commit and just use JDBC driver