database folder updated with functions by arun