DBFile: move prepare statement back into loop for creating tables