Improve the connector based on review feedbacks

Introduce a 'createDatabase' option to allow DB to created
Wrap the callback with connection.release
Fix typo