File path not populating in mysql database