Add database index guidelines

Extracted from old thoughtbot development handbook.