update pg and sqlite