rationalization of psql arguments starting from DB* variables values