add store db in cloud function