Add index support to createTable

Change-Id: If0a43b32151e648bce711352f1e34abc96e33274