Clean up postgres, remove unneeded functionality