Fixed two bugs. One where the app would crash after the database is created, and one where the app would falsely report that NFC is not available