fix db issues, added some things in register to test with