update db structure
add settings api