Updated sqlibrary