SQL fixes for deployment.
0.2.0-RC2