Add postgres support, Entry model, and ajax show partial