Fix DB running out of connections