Move db backend from postgresql to sqlite