Using spreadsheets as databases