Added SQL timeouts (currently for Postgres only), added help texts, general cleanup