Implement most of SQLite and add loading of special bases