can now sync with the database! still needs some interfacing with our app.