adding SQL support