Added sqlite logging for future use of Flask