Database Function Documentation For Milestone

Wrote comments for all the implemented functions and for the ones that
have not been implemented yet.