Bugfix for initializing the db

When I tried to run the bot it kept throwing a KeyError on "_id" in set_metadata. I'll be honest, I'm just learning python but I figured throwing a check in front of it couldn't hurt. Works now, though it's still populating the database from scratch.