fixing full path in database for resource upload