Refactored database connection to use pro extension due to issues with server versions.