This is the logic for the MalwareDB Server. This can be used to add MalwareDB functionality to your own server application.
Check out the documentation for the database schema.