Now uses pool connection, fixes #1