Added timeout to DB