updated database usee date ints instead of strings
added listener for sms and mms