Made lots of things sqlite compatible