database bottom implementation