error handling and database tracking plugin tests passing