Sqlite refdb backend for reference