implement db_postgres connection timeout