Styling updates and quick fix to pair programming
fixed database differences between sqlite and pg