create basis for logging user actions
small fix on sql files and identify the places that will need db log creation
logging is complete