Fix up hibernate script