set values to null if undefined
added missing semicolons
drain the pool on disconnect

without this, node will never exit if min > 0
Merge pull request #1 from floridoo/undefined_fix

Rethinkdb does not accept "undefined"
Merge pull request #3 from floridoo/drain_pool

Drain the pool on disconnect