returning char info, added SQL maths + more

Added math ops to return minor stats from base stats. Added returning of
character info, added checking of character in database and sanity
checking of new character names