add database and cipher library