Enabled auto connectiong to the database.