Implemented more sqlite wrapper stuff