Fixed deploy to replace database yml. Added misisng indexes