Adds sqlite writting code. TODO: end readsqlite, design whole flask app