Split local database to two columns with table name and value, and parse table names