Redo db#connect and db#exists

Both have sync versions as well
_ has an isCallback that checks if the callback is a function