handler cleanup and schema check for db
messing with authorization