def METHOD_NAME(fill_db, is_public):
    input_doc = moldb_input_doc(
        file_path=f's3://{BUCKET_NAME}/{MoldbFiles.VALID.value}', is_public=is_public
    )
    with patch_bottle_request(input_doc) as input_doc:
        resp = api.databases.create()
        assert resp['status'] == 'success'
        resp_doc = resp['data']
        db = DB()
        doc = db.select_one_with_fields(
            'SELECT id, name, version, group_id, is_public FROM molecular_db where id = %s',
            params=(resp_doc['id'],),
        )
        for field in ['name', 'version', 'group_id', 'is_public']:
            assert doc[field] == input_doc[field]
        docs = db.select_with_fields(
            'SELECT * FROM molecule WHERE moldb_id = %s',
            params=(resp_doc['id'],),
        )
        for doc in docs:
            print(doc)
            for field in ['mol_id', 'mol_name', 'formula', 'inchi']:
                assert field in doc