database implemented, testing