init(Args) ->
process_flag(trap_exit, true),
Host = proplists:get_value(hostname, Args), ...
{ok, Conn} = epgsql:connect(Host, ... , [{database, DB}]),
{ok, #state{conn=Conn}}.
handle_call({squery, Sql}, _From, #state{conn=Conn}=State) -> {reply, epgsql:squery(Conn, Sql), State};
handle_call({equery, Stmt, Params}, _From, #state{conn=Conn}=State) -> {reply, epgsql:equery(Conn, Stmt, Params), State};
handle_call(_Request, _From, State) -> {reply, ok, State}.