fix bug of function naming error getRankrewardSubmissionById
use a more cleaned way to query and return error code
Merge pull request #11 from yubowenok/db

cleaner way to query db