fix silly db stuff again