Log number of database leaks fixed so we can see whether the function actually does something
Fix case of function names