Inspired by https://github.com/Martineskerud/AndroidDatabaseExample