Fixed sqlite schema SQL