Added support for aliases. Insert them into table aliases
Added support for automatic reconnection