hacked in some database ,need to think about centralising db access in a central class as it's a bit spread