Partially rewrote database code

...separated skills from the actual character. Still need major
refactoring. Darn, the code is ugly.
Fixed a few issues that came from the db rewrite