Revert "Change db connection"

This reverts commit 29e3e2e5a7256633a0471d651c07f79ff7d18e6c.