sql stuff, server shouldn't crash on sql timeout anymore