More professional-looking way to keep the connection to database open