Added DB support for multiple subjects or note card types