Simple erlang database client