refactor
LMS database sql update