Revert "Revert "Rough Database Connection""

This reverts commit 25c2b0b4f011083046bea3897b6f2287bac2423f.