database.c: update to new logging standard