Database detail working