JOINed synopsis db call, updated sql.sql