added comments and a bit more to database stuff

That's cool, I guess