create tables from class models & cleanup code