Fixed bug with previous fix on dbconnect (wasnt included in last commit)