Fixed dynamic cogwheel update

Database changes fixed aswell, test not fully implemented, awaiting link
layout