added database checkForTable, used to create tables if they not exist