First start in converting to hibernate for the backend