Added database documentation
Added basic endpoint code