New files for date and database query and file upload code