Fixed depricated functions
Added advanced yaml-to-sql support