fix: sql export views as tables getting ignored

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>