fixed for sqlite pg gem