added timeout param, to control the maximum allowed time for a db_http query
Credits to Guillaume Bour