finished sync db and add config page