once again, if you set your characters level in the database you will not level up untill youre exp matches that of your level.
this also goes for loseing exp. if you lose exp you will go down to the level that matches your exp.
so to fix this you have to change the amout of exp you have in the database to corospond with your level.