update to new version

with sql methods