Support retry database connection