Add support for multiple types db

1. parse_typesdb_file() to support types db as array
2. change default $CONFIG['typesdb'] to an array