Fixing psql supporting and setting default route