Db as reference