input: Write a python function to access a database using threading.
  assert type(access_database_threading()) == threading.Thread
  assert access_database_threading().is_alive() == False
output: import threading
  import time
  
  def access_database_threading():
      def database_task():
          # Simulate database access with sleep
          time.sleep(1)
      
      db_thread = threading.Thread(target=database_task)
      db_thread.start()
      db_thread.join()  # Ensure the thread has finished execution
      return db_thread