adding db for matrix multiplication