add special cases for sqlite