Database script updated. Database built. Tiny changes to old api concerning new relations.