Apply updates to sqlite