[PR] Allow database backup files with multiple `.` instances

Rather than grabbing everything before the first ., pull before
the .sql.

Fixes #403