Implement postgres for data persistence

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>