Add accounts blueprint and better handle get_db