app: basic database connectivity