add db and lib