Image uploader and database foreign key fix
Foreign key db updates