Add a function to generate findById for all models

Also replace user.err_user_not_found and flashmob.err_flashmob_not_found
with common constant dbaccess.err_record_not_found.