added connection to db on load