added a timeout arg on db connection