minor DB fixes