changed database hash field to VARCHAR(255), as this is the offical recommendation [thanks to "clobber" for the idea]