Functioning PrayerEditDialog

Fixed database issue where a changed prayer name would cause the prayer
to not be able to updated (we SHOULD use the Id field here instead).
Added edit dialog for prayers as well (with database functionality
built-in).