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

(cherry picked from commit ae83625133bf47f1aa0b81d8f7f531bf08e9a144)