trying to figure out db stuff