Added database test

PLEASE DELETE ASAP