[BIG UPDATE] Link to database OK + Loyalty function OK, stable version with configuration for db