def read_file_data(filepath):
    # type: (str) -> list
    """
    reads the database files and returns them as list.
    """
    dblist = []
    try:
        with open(filepath, 'r') as f:
            dblist = f.read().splitlines()
    except (IOError, TypeError) as e:
        print(e)
    return dblist