changing database implementation