make config based db connection (fixes#3)

@buildmaster