Changes some methods for sqlite