TODO pass dbase and table inside a hash-map