Some DB and ListView improvements