update database

update database api to allow better access to information