added sqlite db stuff, voting and notice listener