SQL scripts for the Adagi core db