Database class correction