hibernate is working now. fixed some named queries.