Best approaching for adding custom Indexes?

@sunnyson has the correct method here, do note that currently the index creation only applies to MongoDB at the moment. We need to add some handling for SQL databases that support indexes like this.