Fix bug with database request in 'get_data_request()'