Added support for transfers between members in the DB, improved triggers and added functions