Minor - reformat code
Fixing SQL errors during installation