cleaning up postgresql db