Fix sql schema (see last commit)