added SQL integration...mostly :P