moved sqliteback allocation to the stack. closes #513.