Fixed asynchronous issue with callback, so tables are created before trying to insert into them.