finished integrating localStorage database for saving info