fixed spelling error
got the database and create alarm part to at least run without crashing also fixed FOREIGN KEY syntax in db
added to do stub for onclick