Change the sql database name and table name

TODO: move all the database specific routine to a class