changing database pointers