Added abstract database mode, improved some comments