use new db interface instad of hard code