added pictures to database