Use __METHOD__ for default $fname params to database functions

Change-Id: I86cbdeabee9709cde15a6b7bd47a53229c2e3f92