Removed the reframe function
This is no done by mysql since the information where stored in the database anyways. Also added some comments here and there.