postgres: Add Database getter method

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