creates one second time-out for queries to enable db to establish connection first