started work on hibernate implementation