changed some database things