For database class. Quick hackjob.