database initialised in splash now, other minor changes