(hopefully) added hibernate and database support