Separate mysql detection from bootstrap