Fixed a bug in DatabaseDao, so that static final properties will be ignored.