fixed compile errors in database and murphy plugins