updated version
fixed bugs
implements updated sqlibrary