Fixed bug where app will fail to write to database because DAtabase helper received a null Context