Added preferences and local account database