Fixed enabling abilities and database saving! Also added build.xml for
Ant generation.