SQL definitions