writing database still