Commented out some not-used fuctions, removed the server start every 120 seconds and added dbfile handle count