Reworked how dbs work, much more efficient