Use custom table name when specified

[Closes #219]
Merge pull request #225 from zjuric/custom_table_name

Use custom table name when specified