I forgot to add the part where it moves the tempfile into the db dir