Fixed several bugs:

1. no conn.id in .db.getQuery

2. '/' support double precision for integer / integer

3. use expr for calculating distinct values in as.db.data.frame

4. Minor bug in merge
Let dim output a proper error message

when x is not db.table