Started work on properties. Currently segfaults after upgrading or initialising the database, though.