add function for query user points

prevent duplicate (user,problem) in submissinos

add getSubmissionById

Fix #9