Remade the script to import pictures to DB

It puts in size, title, description and path into database.