renamed start and end fields to play nicely with postgres