added a lot more core SQL functions so we now have a pretty decent db control kit