Modified the sql database and schema creation scripts