adapted hibernate config