more spout work and added SQLibrary's source code