Start of character classes and errors

Started character class database migrations and implemented a way to
handle errors.