more sqlite additions. still not working yet