I take dbi.c to start the plugin and then modify the code, some part of the code to read the configuration are similar and the functions cdbi_connect_database and notify_dbi_connect_database are almost equal but the structs of the connection are different,
they are not hard to change.