Skip a photo if the genus or species tag is not set
Make sure that SQL foreign key constraints are enabled for SQLite