Adding filename to database