get_data function

Retrieve Data from the Database