Refactor setupDB to correctly create Table.