fixed table name, database name and added a new table called mapTable