Removed create_db. Also added some debug lines.