Unable to initialize connection to DBCan't check empty redirect case