Reworked connection pooling

Had issues with connections not being closed properly, so I switched
from my custom connection pool to the node-mysql pool and routed all
queries through a single method to ensure the connection always gets
closed.