Updated get-database-type-specifier to handle text/longchar type