formated lib.sql