Fix DB, add //fixhalves and //fixslopes