prepared database connection setup - requires branch