Fixed an issue where the DB would time out.