SQL support for NW Happiness