implement a simple interface for db to save the alliance data