Debug db access