get db working with branch dialog