add some fixes

1. to make the R package build-able
2. add db_list_tables and db_has_table for DDFManager
To-do: tbl does not work complaining that there is no db_list_tables for DDFManager class though that function works when it is called in a standalone way.