(feat) add basic flux architecture and update db