backend repay a loan and user groups (alpha, beta, standard)


Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>