track aligned shape sizes instead of unaligned sizes
update database selector after adding/dropping databases