Change database called in function.