Add getBriefs and getDetail function in user_db.js

and tests for them were added.