Use plugin directory for database to make sure it's somewhere writeable