Fixed uninitialized value warning when creating agents.
Use TimeObject instead of Date::Pcalc for backup.pl

Also made script work for PostgreSQL databases with passwords.