Fixed bugs in sqlite with FieldPythonData.
Added sorting to Sqlite.