added database config, and testing for persistant localStorage