core: add DB_PROPS macro to ease transition from 0.10 to 0.11