added proper return types to datastore layer for pins